package com.xianbeiying.app.ckgl.util;

import android.widget.RadioButton;

/**
 * RadioButton按钮的一些操作
 */
public class RabutUtil {
    public static void setRabutChoice(String[] fmType, RadioButton radioButton1, RadioButton radioButton2, int postion) {
        if (fmType != null && fmType.length != 0) {
            if (fmType[postion].equals("运行")){
                radioButton1.setChecked(true);
            } else if (fmType[postion].equals("停止")){
                radioButton2.setChecked(true);
            } else {

            }
        }
    }
}
